const layer = {
  state: {
    //   当前选中的楼层、楼栋、项目等信息
    currentInfo: {},
  },
  mutations: {
    SET_CURRENT_INFO: (state, info) => {
      state.currentInfo = {
        ...state.currentInfo,
        ...info,
      };
    },
  },
  actions: {
    SetCurrentInfo: (store, info) => {
      return new Promise((resolve) => {
        console.log("SetCurrentInfo", info);
        store.commit("SET_CURRENT_INFO", info);
        resolve();
      });
    },
  },
};
export default layer;
